import request from '@/utils/request';

// 获取解决方案列表
export const getSolutionList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Solution/GetSolutionList',
    method: 'GET',
    params
  });
}

// 添加解决方案
export const addSolution = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Solution/AddSolution',
    method: 'POST',
    data
  });
}

// 更新解决方案
export const updateSolution = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Solution/UpdateSolution',
    method: 'POST',
    data
  });
}

// 删除解决方案
export const deleteSolution = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Solution/DeleteSolution',
    method: 'POST',
    data
  });
}

// 启用解决方案
export const enableSolution = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Solution/EnabledSolution',
    method: 'POST',
    data
  });
}

// 禁用解决方案
export const disableSolution = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/Solution/DisabledSolution',
    method: 'POST',
    data
  });
}


// 解决问题列表
export const getSolveQuestionList = (params) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolutionDescription/GetSolutionDescriptionList',
    method: 'GET',
    params
  });
}

// 添加解决问题
export const addSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolutionDescription/AddSolutionDescription',
    method: 'POST',
    data
  });
}

// 更新解决问题
export const updateSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolutionDescription/UpdateSolutionDescription',
    method: 'POST',
    data
  });
}

// 删除解决问题
export const deleteSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolutionDescription/DeleteSolutionDescription',
    method: 'POST',
    data
  });
}

// 启用解决问题
export const enableSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolutionDescription/EnabledSolutionDescription',
    method: 'POST',
    data
  });
}

// 禁用解决问题
export const disableSolveQuestion = (data) => {
  return request({
    url: '/CompanyWebsiteApi/SystemManage/SolutionDescription/DisabledSolutionDescription',
    method: 'POST',
    data
  });
}
